import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import pinia from "@/store"
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import '@/permisson.js' // 路由守卫模块

Vue.use(ElementUI)
Vue.use(pinia)
Vue.config.productionTip = false
const app = new Vue({
  // 渲染属性
  render: h => h(App),
  router,
  pinia, // 在vue实例中引入pinia组件
  beforeCreate(){
    Vue.prototype.$bus = this
  } 
}).$mount('#app')

